package cn.fl.fgi.service;

import cmm.mid.core.framework.page.KeyValueVO;
import cmm.mid.core.framework.page.Pager;
import cn.cmm.base.framework.exception.BaseException;
import cn.fl.commons.result.ResponseData;
import cn.fl.fgi.api.condition.FgiBusInfoQueryCondition;
import com.alibaba.fastjson.JSONObject;

import java.util.Date;
import java.util.List;

/**
 * @description 业务信息
 * @author: fengzuoxiang
 * @date: 19:56 2020/4/10
 * @version V1.0
 */
public interface IFgiBusInfoservice {
	
    /**
     * 分页查询所有
     * @Author fengzuoxiang
     * @Date 19:56 2020/4/10
     * @param page
     * @return cn.fl.commons.result.ResponseData
     */
    public Pager searchListPage(Pager page) throws BaseException;

    /**
    * @Description //上报数据
    * @Author fengzuoxiang
    * @Date 19:56 2020/4/10
    * @Param [isRisk]
    * @return cn.fl.commons.result.ResponseData
    **/
    public ResponseData submitFgiBusInfo(FgiBusInfoQueryCondition fgiBusInfoQueryCondition) throws BaseException;

    /**
    * @Description //确认上报数据
    * @Author fengzuoxiang
    * @Date 19:56 2020/4/10
    * @Param [isRisk]
    * @return cn.fl.commons.result.ResponseData
    **/
    public ResponseData makeSureSubmitFgiBusInfo(FgiBusInfoQueryCondition fgiBusInfoQueryCondition) throws BaseException;

    /**
     * 项目类型 包含删除和无效数据
     * @return
     * @throws BaseException
     */
    public List<KeyValueVO> getKvPrjTypeList() throws BaseException;

    /**
     * 事业部集合
     * @return <KEY,VALUE>集合
     * @throws BaseException
     */
    public List<KeyValueVO> getKvOrgList() throws BaseException;

    public ResponseData submitData();

    public ResponseData checkData();

    public ResponseData getData(Date startTm, Date endTm);

    public JSONObject getSubmitDetailByPayNo(String busSourceId, String busSource, String busSourceType) throws BaseException;
}
